package com.itheima.dao.impl;

import com.itheima.dao.UserDao;
import org.springframework.stereotype.Component;


@Component("userDao")// 不加别名默认是userDaoImpl
public class UserDaoImpl implements UserDao {
        @Override
        public boolean login(String username, String password) {
            if (username.equals("张三") && password.equals("123")){
                return true;
            }
            return false;
        }
}
